import axios from 'axios'

axios.defaults.baseURL = '';

axios.interceptors.request.use(function (config: any) {
  // let token = sessionStorage.getItem('token') || ''
  // if (token) config.headers.token = token'
  // console.log(config)
  return config;
},
  function (error) {
    return Promise.reject(error);
  });


axios.interceptors.response.use(function (response) {
  return response;
}, function (error) {
  return Promise.reject(error);
});
export default axios